package com.financing.model;
import com.financing.model.agent.AllotLog;
import com.financing.model.agent.Visit;
import com.financing.model.app.AppPromotion;
import com.financing.model.app.AppPush;
import com.financing.model.app.AppVersion;
import com.financing.model.finance.FinanceLog;
import com.financing.model.finance.TransferLog;
import com.financing.model.invest.Bid;
import com.financing.model.invest.BidCheck;
import com.financing.model.invest.BidDetail;
import com.financing.model.invest.BidVirtualLog;
import com.financing.model.invest.Coupon;
import com.financing.model.invest.CouponLog;
import com.financing.model.invest.Deposit;
import com.financing.model.invest.InvestLog;
import com.financing.model.invest.Payment;
import com.financing.model.invest.Repay;
import com.financing.model.invest.ShareBenefit;
import com.financing.model.invest.ShareBenefitTemplet;
import com.financing.model.invest.Trade;
import com.financing.model.invest.Withdraw;
import com.financing.model.report.SqlReport;
import com.financing.model.system.Address;
import com.financing.model.system.AssetsLog;
import com.financing.model.system.Logger;
import com.financing.model.system.Notice;
import com.financing.model.system.NoticeLog;
import com.financing.model.system.Param;
import com.financing.model.system.Slider;
import com.financing.model.system.SmsLog;
import com.financing.model.system.Task;
import com.financing.model.user.Bank;
import com.financing.model.user.BankCard;
import com.financing.model.user.Staff;
import com.financing.model.user.Token;
import com.financing.model.user.User;
import com.financing.model.user.UserReferee;
import com.jfinal.plugin.activerecord.ActiveRecordPlugin;

public class _MappingKit {
	public static void mapping(ActiveRecordPlugin arp) {

		 // user
		arp.addMapping("bank", "id", Bank.class);
		arp.addMapping("user", "id", User.class);
		arp.addMapping("bank_card", "id", BankCard.class);
		arp.addMapping("user_referee", "id", UserReferee.class); 
		arp.addMapping("staff", "id", Staff.class);
		
		 // agent 
		arp.addMapping("visit", "id", Visit.class);
		arp.addMapping("allot_log", "id", AllotLog.class);

		 // invest
		arp.addMapping("bid", "id", Bid.class); 
		arp.addMapping("bid_detail", "id", BidDetail.class);
		arp.addMapping("bid_check", "id", BidCheck.class);
		arp.addMapping("bid_virtual_log", "id", BidVirtualLog.class);
		arp.addMapping("trade", "id", Trade.class); 
		arp.addMapping("payment", "id", Payment.class); 
		arp.addMapping("repay", "id", Repay.class); 
		arp.addMapping("deposit", "id", Deposit.class);
		arp.addMapping("withdraw", "id", Withdraw.class); 
		arp.addMapping("invest_log", "id", InvestLog.class); 
		arp.addMapping("coupon", "id", Coupon.class); 
		arp.addMapping("share_benefit", "id", ShareBenefit.class);
		arp.addMapping("share_benefit_templet", "id", ShareBenefitTemplet.class);
		arp.addMapping("coupon_log", "id", CouponLog.class); 
  
		 // app
		arp.addMapping("token", "id", Token.class);
		arp.addMapping("app_version", "id", AppVersion.class);
		arp.addMapping("app_push", "id", AppPush.class); 
		arp.addMapping("app_promotion", "id", AppPromotion.class);

		 // finance
		arp.addMapping("finance_log", "id", FinanceLog.class);
		arp.addMapping("transfer_log", "id", TransferLog.class);
		
		 // system  
		arp.addMapping("notice", "id", Notice.class); 
		arp.addMapping("notice_log", "id", NoticeLog.class); 
		arp.addMapping("assets_log", "id", AssetsLog.class); 
		arp.addMapping("slider", "id", Slider.class);
		arp.addMapping("param", "id", Param.class);
		arp.addMapping("logger", "id", Logger.class); 
		arp.addMapping("sms_log", "id", SmsLog.class);
		arp.addMapping("address", "id", Address.class);
		arp.addMapping("task", "id", Task.class);

		 // report  
		arp.addMapping("sql_report", "id", SqlReport.class);
	} 
}

